package com.ophiux.auth.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
@Deprecated
public class TestController {

    @GetMapping("/hello")
    public ResponseEntity hello() {
        return ResponseEntity.ok("hello,this is my api");
    }

    public static void main(String[] args) {
        PasswordEncoder ENCODER = new BCryptPasswordEncoder();
        String encode = ENCODER.encode("123456");
        System.out.println(encode);
    }
}